<template>
	<view>
		<view class="header">
			<u-swiper :list="imgs" height="100%" interval='3000' mode='rect' border-radius='0'></u-swiper>
			<view class="location">
				<u-icon name="map" color="#FFFFFF" size="28"></u-icon>
				<view class="locationText">
					<text>{{city}}</text>
				</view>
			</view>
			<view class="searchBar">
				<u-icon class="icon" name="search" color="#666666" size="32"></u-icon>
				<input type="text" v-model="keyword" placeholder="海南三亚惊喜五日游"
					placeholder-style="color:#666666;font-size:28rpx" />
				<view class="text" @click="searchFn">
					搜索
				</view>
			</view>
		</view>
		<view class="container">
			<view class="tabs">
				<view class="tabs-ul tabs-one">
					<view class="tabs-li" @click="navTo('./travel/travel')">
						<text>优选旅游</text>
						<image src="../../static/imgs/yxlv.png" mode=""></image>
					</view>
					<view class="tabs-li" @click="navTo('./hotel/hotel')">
						<text>酒店</text>
						<image src="../../static/imgs/jiudian.png" mode=""></image>
					</view>
					<view class="tabs-li" @click="navTo('./planeTicket/planeTicket')">
						<text>机票</text>
						<image src="../../static/imgs/jipiao.png" mode=""></image>
					</view>
					<view class="tabs-li" @click="navTo('./trainTicket/trainTicket')">
						<text>火车票</text>
						<image src="../../static/imgs/huochepiao.png" mode=""></image>
					</view>
				</view>
				<view class="tabs-ul tabs-two">
					<view class="tabs-li" @click="navTo('./localLife/localLife')">
						<text>本地生活</text>
						<image src="../../static/imgs/bdsh.png" mode=""></image>
					</view>
					<view class="tabs-li" @click="navTo('./refuel/refuel')">
						<text>加油</text>
						<image src="../../static/imgs/jiayou.png" mode=""></image>
					</view>
					<view class="tabs-li" @click="navTo('./coupon/coupon')">
						<text>淘券</text>
						<image src="../../static/imgs/taoquan.png" mode=""></image>
					</view>
					<view class="tabs-li" @click="navTo('./hitCar/hitCar')">
						<text>打车</text>
						<image src="../../static/imgs/dache.png" mode=""></image>
					</view>
				</view>
				<view class="tabs-ul tabs-three">
					<view class="tabs-li" @click="navTo('./mall/mall')">
						<text>精选商城</text>
						<image src="../../static/imgs/jxsc.png" mode=""></image>
					</view>
					<view class="tabs-li" @click="navTo('./mall/jdMall')">
						<text>京东</text>
						<image src="../../static/imgs/jingdong.png" mode=""></image>
					</view>
					<view class="tabs-li" @click="navTo('./educate/educate')">
						<text>教育</text>
						<image src="../../static/imgs/jiaoyu.png" mode=""></image>
					</view>
					<view class="tabs-li" @click="navTo('./travel/travelfilt/travelfilt?type=1')">
						<text>vip专区</text>
						<image src="../../static/imgs/vipzq.png" mode=""></image>
					</view>
				</view>
			</view>
			<view class="otherTab">
				<view class="otherTab-item" @click="navTo('../mine/upvip/upvip')">
					<image src="../../static/imgs/gmvip.png" mode=""></image>
					<text>购买VIP</text>
				</view>
				<view class="otherTab-item" @click="navTo('../mine/extend/poster/poster')">
					<image src="../../static/imgs/wyfx.png" mode=""></image>
					<text>我要分享</text>
				</view>
				<view class="otherTab-item" @click="navTo('../mine/setShop/setShop')">
					<image src="../../static/imgs/wykd.png" mode=""></image>
					<text>我要开店</text>
				</view>
				<view class="otherTab-item">
					<image src="../../static/imgs/xsjc.png" mode=""></image>
					<text>新手教程</text>
				</view>
			</view>
			
			<view style="padding-left: 20rpx;margin: 10rpx 0;">
				<image style="width: 132rpx;height: 46rpx;" src="../../static/imgs/cxbk.png" mode=""></image>
			</view>
			<view class="banner">
				<u-swiper :list="bannerList" mode='none' height='216' interval='3000' @click="imgnavTo"></u-swiper>
			</view>			
		</view>
		<view class="tab-bar">
			<view class="blank"></view>
			<u-tabs ref="uTabs" :list="list" :current="current" @change="tabsChange" bar-width='100' bar-height="12"
				inactive-color='#333333' bg-color='#f2f2f2' :bar-style='barStyle' :active-item-style='itemStyle'
				:is-scroll="false" swiperWidth="750"></u-tabs>
		</view>
		<!-- 玩转世界 -->
		<view class="content" v-show="current==0">
			<u-waterfall v-model="travelist" ref="travelWaterfall">
				<template v-slot:left="{leftList}">
					<view v-for="(item, index) in leftList" :key="index"
						@click="navTo('./travel/travelDetail/travelDetail?id='+item.id)">
						<view class="shopitem">
							<image :src="item.icon" mode=""></image>
							<view class="title">
								{{item.title}}
							</view>
							<view class="price">
								<text style="font-size: 24rpx;">¥</text>{{item.price}}
							</view>
							<!-- <view class="price" v-else>
								<text style="font-size: 24rpx;">¥</text>{{item.vip_price}}
							</view> -->
							<view class="price-box">
								<view class="rel-price">
									¥<text>{{Number(item.price)-Number(item.use_welfare_fund)}}</text>
								</view>
								<!-- <view class="rel-price" v-else>
									¥<text>{{Number(item.vip_price)-Number(item.use_welfare_fund)}}</text>
								</view> -->
								<view class="fl-price">
									+ {{item.use_welfare_fund}} 福利金
								</view>
							</view>
						</view>
					</view>
				</template>
				<template v-slot:right="{rightList}">
					<view v-for="(item, index) in rightList" :key="index"
						@click="navTo('./travel/travelDetail/travelDetail?id='+item.id)">
						<view class="shopitem">
							<image :src="item.icon" mode=""></image>
							<view class="title">
								{{item.title}}
							</view>
							<view class="price">
								<text style="font-size: 24rpx;">¥</text>{{item.price}}
							</view>
							<!-- <view class="price" v-else>
								<text style="font-size: 24rpx;">¥</text>{{item.vip_price}}
							</view> -->
							<view class="price-box">
								<view class="rel-price">
									¥<text>{{Number(item.price)-Number(item.use_welfare_fund)}}</text>
								</view>
								<!-- <view class="rel-price" v-else>
									¥<text>{{Number(item.vip_price)-Number(item.use_welfare_fund)}}</text>
								</view> -->
								<view class="fl-price">
									+ {{item.use_welfare_fund}}福利金
								</view>
							</view>
						</view>
					</view>
				</template>
			</u-waterfall>
			<view style="padding: 10rpx 0;">
				<u-loadmore bg-color="#f2f2f2" :status="loadStatus"></u-loadmore>
			</view>
		</view>
		<!-- 本地生活 -->
		<view class="content" v-show="current==1">
			<u-waterfall v-model="lifeList" ref="lifeWaterfall">
				<template v-slot:left="{leftList}">
					<view class="storeItem" v-for="(item, index) in leftList" :key="index"
						@click="navTo('./shop/shop?id='+item.id)">
						<image :src="item.icon" mode=""></image>
						<view class="title">
							{{item.shop_name}}
						</view>
						<view class="rate">
							<u-icon name="star-fill" color="#FE8C16" size="28"></u-icon>
							<text>{{item.score}}分</text>
						</view>
						<view class="price">
							¥ {{item.average_cost}}/人
						</view>
						<view class="address">
							{{item.city+'市'+item.district+'区'+ item.address}}
						</view>
					</view>
				</template>
				<template v-slot:right="{rightList}">
					<view class="storeItem" v-for="(item, index) in rightList" :key="index"
						@click="navTo('./shop/shop?id='+item.id)">
						<image :src="item.icon" mode=""></image>
						<view class="title">
							{{item.shop_name}}
						</view>
						<view class="rate">
							<u-icon name="star-fill" color="#FE8C16" size="28"></u-icon>
							<text>{{item.score}}分</text>
						</view>
						<view class="price">
							¥ {{item.average_cost}}/人
						</view>
						<view class="address">
							{{item.city+'市'+item.district+'区'+ item.address}}
						</view>
					</view>
				</template>
			</u-waterfall>
			<view style="padding: 10rpx 0;">
				<u-loadmore bg-color="#f2f2f2" :status="loadStatus"></u-loadmore>
			</view>
		</view>
		<!-- 超值商城 -->
		<view class="content" v-show="current==2">
			<u-waterfall v-model="goodsList" ref="shopWaterfall">
				<template v-slot:left="{leftList}">
					<view class="goods" v-for="(item, index) in leftList" :key="index"
						@click="navTo('./mall/goods/goods?id='+item.goods_sku_id)">
						<image :src="item.image_path" mode=""></image>
						<view class="title">
							{{item.name}}
						</view>
						<view class="price">
							<view class="tit">
								<text style="font-weight: normal;font-size: 24rpx;">¥</text>{{item.i_price}}
							</view>
							<!-- <view class="tit" v-else>
								<text style="font-weight: normal;font-size: 24rpx;">¥</text>{{item.i_vip_price}}
							</view> -->
							<text class="fukuan">{{item.sales_sum}}人付款</text>
						</view>
						<view class="price-box">
							<view class="rel-price">
								¥<text>{{Number(item.i_price)-Number(item.use_welfare_fund)}}</text>
							</view>
							<!-- <view class="rel-price" v-else>
								¥<text>{{Number(item.i_vip_price)-Number(item.use_welfare_fund)}}</text>
							</view> -->
							<view class="fl-price">
								+ {{item.use_welfare_fund}} 福利金
							</view>
						</view>
					</view>
				</template>
				<template v-slot:right="{rightList}">
					<view class="goods" v-for="(item, index) in rightList" :key="index"
						@click="navTo('./mall/goods/goods?id='+item.goods_sku_id)">
						<image :src="item.image_path" mode=""></image>
						<view class="title">
							{{item.name}}
						</view>
						<view class="price">
							<view class="tit">
								<text style="font-weight: normal;font-size: 24rpx;">¥</text>{{item.i_price}}
							</view>
							<!-- 		<view class="tit" v-else>
								<text style="font-weight: normal;font-size: 24rpx;">¥</text>{{item.i_vip_price}}
							</view> -->
							<text class="fukuan">{{item.sales_sum}}人付款</text>
						</view>
						<view class="price-box">
							<view class="rel-price">
								¥<text>{{Number(item.i_price)-Number(item.use_welfare_fund)}}</text>
							</view>
							<!-- <view class="rel-price" v-else>
								¥<text>{{Number(item.i_vip_price)-Number(item.use_welfare_fund)}}</text>
							</view> -->
							<view class="fl-price">
								+ {{item.use_welfare_fund}} 福利金
							</view>
						</view>
					</view>
				</template>
			</u-waterfall>
			<view style="padding: 10rpx 0;">
				<u-loadmore bg-color="#f2f2f2" :status="loadStatus"></u-loadmore>
			</view>
		</view>
		<!-- 周边游 -->
		<view class="content" v-show="current==3">
			<u-waterfall v-model="tourList" ref="tourWaterfall">
				<template v-slot:left="{leftList}">
					<view v-for="(item, index) in leftList" :key="index"
						@click="navTo('./travel/travelDetail/travelDetail?id='+item.id)">
						<view class="shopitem">
							<image :src="item.icon" mode=""></image>
							<view class="title">
								{{item.title}}
							</view>
							<view class="price">
								<text style="font-size: 24rpx;">¥</text>{{item.price}}
							</view>
							<!-- 		<view class="price" v-else>
								<text style="font-size: 24rpx;">¥</text>{{item.vip_price}}
							</view> -->
							<view class="price-box">
								<view class="rel-price">
									¥<text>{{Number(item.price)-Number(item.use_welfare_fund)}}</text>
								</view>
								<!-- <view class="rel-price" v-else>
									¥<text>{{Number(item.vip_price)-Number(item.use_welfare_fund)}}</text>
								</view> -->
								<view class="fl-price">
									+ {{item.use_welfare_fund}} 福利金
								</view>
							</view>
						</view>
					</view>
				</template>
				<template v-slot:right="{rightList}">
					<view v-for="(item, index) in rightList" :key="index"
						@click="navTo('./travel/travelDetail/travelDetail?id='+item.id)">
						<view class="shopitem">
							<image :src="item.icon" mode=""></image>
							<view class="title">
								{{item.title}}
							</view>
							<view class="price">
								<text style="font-size: 24rpx;">¥</text>{{item.price}}
							</view>
							<!-- 		<view class="price" v-else>
								<text style="font-size: 24rpx;">¥</text>{{item.vip_price}}
							</view> -->
							<view class="price-box">
								<view class="rel-price">
									¥<text>{{Number(item.price)-Number(item.use_welfare_fund)}}</text>
								</view>
								<!-- 	<view class="rel-price" v-else>
									¥<text>{{Number(item.vip_price)-Number(item.use_welfare_fund)}}</text>
								</view> -->
								<view class="fl-price">
									+ {{item.use_welfare_fund}} 福利金
								</view>
							</view>
						</view>
					</view>
				</template>
			</u-waterfall>
			<view style="padding: 10rpx 0;">
				<u-loadmore bg-color="#f2f2f2" :status="loadStatus"></u-loadmore>
			</view>
		</view>

		<u-back-top :scroll-top="scrollTop"></u-back-top>

	</view>
</template>

<script>
	import myRequest from '@/api/index.js'
	export default {
		data() {
			return {
				scrollTop: 0,
				isLoading: true,
				loadStatus: 'loading',
				keyword: '',
				current: 0,
				barStyle: {
					background: 'linear-gradient(180deg, #93B9F9 0%, #2D7AFE 100%)',
					borderRadius: '40rpx',
				},
				itemStyle: {
					fontSize: '34rpx',
					fontWeight: 'bold',
					color: '#333333'
				},
				list: [{
						name: '玩转世界'
					},
					{
						name: '本地生活'
					},
					{
						name: '超值商城'
					},
					{
						name: '周边游'
					}
				],
				travelist: [], //旅游列表
				goodsList: [], //商城列表
				lifeList: [], // 本地生活
				tourList: [], // 周边游
				page: '1', // 页码
				city: '',
				lng: '', // 经度
				lat: '', // 纬度
				cityList: [],
				imgs: [],
				bannerList:[],
				banner:[]
			}
		},
		onPageScroll(e) {
			this.scrollTop = e.scrollTop;
		},
		onLoad() {
			this.getTrave()
			this.getBanners()
			// 获取当前位置
			let that = this
			uni.getLocation({
				type: 'gcj02',
				geocode: true,
				success(res) {
					that.city = res.address.city
					that.lat = res.latitude
					that.lng = res.longitude
					that.getMyregion()
				},
			})
		},
		// 下拉刷新
		onReachBottom() {
			if (!this.isLoading) return;
			let page = Number(this.page) + 1
			this.page = page.toString()
			this.loadStatus = 'loading';
			this.getTrave()
			this.getGoods()
			this.getLife()
			this.getAround()
			setTimeout(() => {
				if (!this.isLoading) {
					this.loadStatus = 'nomore'
					this.isLoading = true
				} else {
					this.loadStatus = 'loading';
				}
			}, 1000)
		},
		methods: {
			imgnavTo(index){
				uni.navigateTo({
					url:this.banner[index].redirect_url
				})
			},
			searchFn() {
				uni.navigateTo({
					url: './travel/travelfilt/travelfilt?keyword=' + this.keyword
				})
			},
			// 获取banner
			async getBanners() {
				let res = await myRequest.getBanner({
					position: '1'
				})
				if (res.status) {
					res.data.forEach(item => {
						this.imgs.push(item.pic_url)
					})
				}
				
				let data = await myRequest.getBanner({
					position: '4'
				})
				if (data.status) {
					this.banner =data.data
					data.data.forEach(item => {
						this.bannerList.push(item.pic_url)
					})
				}
				
			},

			// 周边游
			async getAround() {
				let {
					page,
					lng,
					lat
				} = this
				let res = await myRequest.getTravel({
					page: page,
					category_type: '3',
					lng: lng.toString(),
					lat: lat.toString()
				})
				if (res.status) {
					res.data.forEach(item => {
						item.vip_price = Number(item.vip_price).toFixed(0)
					})
					if (res.data.length == 0) {
						this.isLoading = false
						return
					} else {
						this.tourList = [...this.tourList, ...res.data]
					}
				}
			},
			// 本地生活
			async getLife() {
				let {
					page,
					lng,
					lat,
					citycode
				} = this
				let res = await myRequest.getShoplist({
					page: page,
					lat: lat.toString(),
					lng: lng.toString(),
					city_code: citycode ? citycode : '',
				})
				if (res.status) {
					if (res.data.length == 0) {
						this.isLoading = false
					} else {
						this.lifeList = [...this.lifeList, ...res.data]
					}
				}
			},
			// 旅游线路
			async getTrave() {
				let {
					page
				} = this
				let res = await myRequest.getTravel({
					page: page,
					category_type: '0'
				})
				if (res.status) {
					res.data.forEach(item => {
						item.vip_price = Number(item.vip_price).toFixed(0)
					})
					if (res.data.length == 0) {
						this.isLoading = false
						return
					} else {
						this.travelist = [...this.travelist, ...res.data]
					}
				}
			},
			// 平台商品
			async getGoods() {
				let {
					page
				} = this
				let res = await myRequest.getGoodsList({
					page: page,
					goods_source: '2'
				})
				if (res.status) {
					if (res.data.length == 0) {
						this.isLoading = false
						return
					} else {
						this.goodsList = [...this.goodsList, ...res.data]
					}
				}
			},
			// tab切换
			tabsChange(index) {
				this.current = index;
				this.page = '1'
				this.$refs.travelWaterfall.clear()
				this.$refs.shopWaterfall.clear()
				this.$refs.lifeWaterfall.clear()
				this.$refs.tourWaterfall.clear()
				if (this.current == 0) {
					this.getTrave()
				}
				if (this.current == 2) {
					this.getGoods()
				}
				if (this.current == 1) {
					this.getLife()
				}
				if (this.current == 3) {
					this.getAround()
				}
			},
			// 获取省市信息
			async getMyregion() {
				let that = this
				let city = this.city.split('市')[0]
				let res = await myRequest.getregion()
				if (res.status) {
					let i = 0
					res.data.forEach((item, k) => {
						if (k != i) {
							this.cityList.push(item)
						}
					})
					// 匹配当前定位的城市代码
					this.cityList.forEach(k => {
						k.citys.forEach(i => {
							if (i.name == city) {
								that.citycode = i.code
							}
						})
					})
				}
			},
			// 跳转
			navTo(url) {
				uni.navigateTo({
					url: url
				})
			},
		}
	}
</script>

<style>
	page {
		background: #F2F2F7;
	}
</style>
<style lang="scss" scoped>
	/deep/.u-swiper-wrap {
		width: 100%;
		height: 100%;
	}

	.header {
		width: 100%;
		height: 400rpx;

		.location {
			padding: 5rpx 10rpx;
			position: absolute;
			left: 48rpx;
			top: 350rpx;
			display: flex;
			align-items: center;
			justify-content: space-evenly;
			border-radius: 40rpx;
			background: rgba(0, 0, 0, 0.3);

			.locationText {
				font-size: 20rpx;
				font-family: Segoe UI;
				font-weight: 400;
				color: #FFFFFF;
			}
		}

		.searchBar {
			position: absolute;
			top: 54rpx;
			display: flex;
			align-items: center;
			left: 50%;
			margin-left: -330rpx;

			input {
				width: 660rpx;
				height: 64rpx;
				background: #FFFFFF;
				border-radius: 40rpx;
				text-indent: 64rpx;
				font-size: 28rpx;
			}

			.icon {
				position: absolute;
				left: 16rpx;
				z-index: 88;
			}

			.text {
				width: 88rpx;
				height: 64rpx;
				position: absolute;
				z-index: 88;
				right: 0;
				font-size: 28rpx;
				line-height: 64rpx;
				font-family: PingFang SC;
				font-weight: 400;
				color: #3587F7;
			}
		}
	}

	.container {
		.tabs {
			width: 710rpx;
			height: 392rpx;
			border-radius: 16rpx;
			background-color: #FFFFFF;
			display: flex;
			flex-direction: column;
			justify-content: space-between;
			overflow: hidden;
			margin: 28rpx auto 0;

			.tabs-ul {
				height: 128rpx;
				display: flex;
				justify-content: space-between;

				.tabs-li {
					width: 160rpx;
					height: 100%;
					display: flex;
					flex-direction: column;
					align-items: center;
					justify-content: center;
					opacity: 0.9;

					image {
						width: 44rpx;
						height: 44rpx;
					}

					text {
						margin-bottom: 8rpx;
						font-size: 28rpx;
						font-family: PingFang SC;
						font-weight: 400;
						color: #333333;
					}

					&:nth-child(1) {
						width: 220rpx;
						opacity: 1;

						text {
							margin-bottom: 8rpx;
							font-size: 28rpx;
							font-family: PingFang SC;
							font-weight: 600;
							color: #FFFFFF;
						}

						image {
							width: 48rpx;
							height: 48rpx;
						}
					}
				}
			}

			.tabs-one {
				.tabs-li {
					background: linear-gradient(90deg, #E0EFFF 0%, #B5D8FA 100%);

					&:nth-child(1) {
						background: linear-gradient(180deg, #6ABCFC 0%, #048FFE 100%);
					}
				}
			}

			.tabs-two {
				.tabs-li {
					background: linear-gradient(90deg, #FFEFE6 0%, #F8CBB4 100%);

					&:nth-child(1) {
						background: linear-gradient(180deg, #FEA837 0%, #FF7700 100%);
					}
				}
			}

			.tabs-three {
				.tabs-li {
					background: linear-gradient(90deg, #E5F6F8 0%, #9DEAF5 100%);

					&:nth-child(1) {
						background: linear-gradient(180deg, #86E1F0 0%, #34D8F4 100%);
					}
				}
			}
		}

		.otherTab {
			margin-top: 32rpx;
			width: 100%;
			height: 124rpx;
			display: flex;

			.otherTab-item {
				flex: 1;
				display: flex;
				flex-direction: column;
				align-items: center;
				justify-content: center;

				image {
					width: 44rpx;
					height: 44rpx;
					margin-bottom: 16rpx;
				}

				.text {
					font-size: 24rpx;
					font-family: PingFang SC;
					font-weight: 400;
					color: #666666;
				}
			}
		}

		.banner {
			width: 710rpx;
			height: 216rpx;
			border-radius: 16rpx;
			margin: 10rpx auto 0;
		}
	}

	.tab-bar {
		padding: 0 20rpx;
		position: sticky;
		top: 0rpx;
		background-color: #F2F2F2;
		z-index: 99;

		.blank {
			width: 100%;
			height: var(--status-bar-height);
			background-color: #F2F2F2;
		}
	}

	.content {
		width: 720rpx;
		margin: 0 auto;

		.shopitem {
			background-color: #FFFFFF;
			padding-bottom: 20rpx;
			width: 345rpx;
			height: auto;
			overflow: hidden;
			border-radius: 16rpx;
			margin: 20rpx auto 0;

			image {
				width: 345rpx;
				height: 345rpx;
			}

			.title {
				padding: 0 10rpx;
				font-size: 30rpx;
				font-family: Segoe UI;
				color: #333333;
				margin-top: 10rpx;
				overflow: hidden;
			}

			.price {
				padding-left: 10rpx;
				font-size: 36rpx;
				font-family: Arial;
				font-weight: 400;
				color: #FF4600;
				margin-top: 10rpx;
				text-decoration: line-through
			}

			.price-box {
				padding-left: 10rpx;
				width: fit-content;
				width: -webkit-fit-content;
				width: -moz-fit-content;
				display: flex;
				margin-top: 12rpx;

				.rel-price {
					height: 44rpx;
					width: fit-content;
					width: -webkit-fit-content;
					width: -moz-fit-content;
					background: linear-gradient(180deg, #FBE9B9 0%, #FDE6B8 100%);
					border-radius: 8rpx 0px 0px 8rpx;
					padding: 0 6rpx;
					font-size: 24rpx;
					font-family: Arial;
					font-weight: 400;
					line-height: 44rpx;
					color: #333333;

					text {
						font-size: 32rpx;
						font-weight: bold;
						margin-left: 4rpx;
					}
				}

				.fl-price {
					height: 44rpx;
					width: fit-content;
					width: -webkit-fit-content;
					width: -moz-fit-content;
					background: #333333;
					border-radius: 0px 8rpx 8rpx 0px;
					font-size: 24rpx;
					font-family: Arial;
					font-weight: 400;
					color: #FBE8B8;
					line-height: 44rpx;
					padding: 0 6rpx;
				}
			}
		}

		.goods {
			width: 348rpx;
			height: auto;
			background-color: #FFFFFF;
			border-radius: 16rpx;
			padding-bottom: 18rpx;
			overflow: hidden;
			margin-top: 20rpx;

			image {
				width: 348rpx;
				height: 348rpx;
			}

			.price-box {
				padding-left: 10rpx;
				width: fit-content;
				width: -webkit-fit-content;
				width: -moz-fit-content;
				display: flex;
				margin-top: 12rpx;

				.rel-price {
					height: 44rpx;
					width: fit-content;
					width: -webkit-fit-content;
					width: -moz-fit-content;
					background: linear-gradient(180deg, #FBE9B9 0%, #FDE6B8 100%);
					border-radius: 8rpx 0px 0px 8rpx;
					padding: 0 6rpx;
					font-size: 24rpx;
					font-family: Arial;
					font-weight: 400;
					line-height: 44rpx;
					color: #333333;

					text {
						font-size: 32rpx;
						font-weight: bold;
						margin-left: 4rpx;
					}
				}

				.fl-price {
					height: 44rpx;
					width: fit-content;
					width: -webkit-fit-content;
					width: -moz-fit-content;
					background: #333333;
					border-radius: 0px 8rpx 8rpx 0px;
					font-size: 24rpx;
					font-family: Arial;
					font-weight: 400;
					color: #FBE8B8;
					line-height: 44rpx;
					padding: 0 6rpx;
				}
			}

			.title {
				margin-top: 6rpx;
				padding-left: 12rpx;
				font-size: 30rpx;
				font-family: PingFang SC;
				font-weight: 400;
				color: #333333;
			}

			.price {
				margin-top: 6rpx;
				padding-left: 12rpx;
				padding-right: 12rpx;
				display: flex;
				align-items: center;

				.tit {
					font-size: 36rpx;
					font-family: Arial;
					font-weight: 600;
					color: #FF4600;
					text-decoration: line-through
				}

				.fukuan {
					margin-left: auto;
					font-size: 24rpx;
					font-family: PingFang SC;
					font-weight: 400;
					color: #999999;
				}
			}
		}

		.storeItem {
			width: 348rpx;
			height: auto;
			background: #FFFFFF;
			border-radius: 16rpx;
			padding-bottom: 18rpx;
			margin-bottom: 20rpx;
			overflow: hidden;

			image {
				width: 348rpx;
				height: 348rpx;
			}

			.title {
				padding: 0 10rpx;
				font-size: 32rpx;
				font-family: PingFang SC;
				font-weight: 400;
				color: #333333;
			}

			.rate {
				margin-top: 8rpx;
				padding-left: 10rpx;
				font-size: 24rpx;
				font-family: Segoe UI;
				font-weight: 400;
				color: #FE8C16;

				text {
					margin-left: 8rpx;
				}
			}

			.price {
				margin-top: 8rpx;
				padding-left: 10rpx;
				font-size: 28rpx;
				font-family: PingFang SC;
				font-weight: 400;
				color: #333333;
			}

			.address {
				margin-top: 10rpx;
				padding: 0 10rpx;
				font-size: 24rpx;
				font-family: PingFang SC;
				font-weight: 400;
				color: #999999;
				overflow: hidden;
				white-space: nowrap;
				text-overflow: ellipsis;
			}
		}

	}
</style>
